Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

VincentDerk/BU-MiF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BU-MiF

The code used to conduct the experiments for the UAI2020 paper: "Ordering Variables for Weighted Model Integration".

Previous vtree heuristics did not take into account the continuous variables present in the inequalities. This code contains the heuristics contributed by the paper that do take this information into account, and try to create a vtree where the integration order is more optimal (minimising induced-width/depth).

Instructions

The paper results can be produced by first running the experiments:

python3 ./paper/random-experiments.py -s all -p first -n 35 -t 30 -r 10
python3 ./paper/random-experiments.py -s all -p second -n 40 -t 60 -r 10
python3 ./paper/random-experiments.py -s opt -p first -n 35 -t 30
python3 ./paper/random-experiments.py -s smi -p second -n 40 -t 60

and then visualizing the results:

python3 ./paper/random-visualization.py

Dependencies

In addition to the dependencies mentioned in setup.py, you need to install the following:

python3 -m pip install --index-url https://pypi.org/simple/ --no-deps kahypar==1.0.4
  • psipy (Instructions from pywmi)
    1. Install the dmd compiler v2.078.3
    2. Install pyd
    git clone https://github.com/ariovistus/pyd.git
    cd pyd
    python setup.py install
    cd ../
    1. Install psipy
    git clone --recursive https://github.com/ML-KULeuven/psipy.git
    cd ./psypi
    python ./psipy/build_psi.py
    python setup.py install
    It will print a path to your psi build, either add the printed line to your path (add to ~/.bashrc) or create a file called 'psipy.pth' to your python distribution: python/lib/python3.6/site-packages/ with the printed path as content (e.g. /home/vincent/psipy/build/lib.linux-x86_64-3.6). The latter approach is recommended when for example using PyCharm and virtual environments.

Authors

The following people have authored this code and the paper:

You can direct any questions towards Vincent.

License

Copyright 2020 KU Leuven, DTAI Research Group

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

The code used to conduct the experiments for the UAI2020 paper: "Ordering Variables for Weighted Model Integration".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published